home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3191 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  55 lines

  1. Path: alkymi.unit.no!atlep
  2. From: atlep@alkymi.unit.no (Atle \ystein Pedersen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Problems compiling gcc
  5. Date: 8 Feb 1996 09:03:28 GMT
  6. Organization: Norwegian Institute of Technology
  7. Message-ID: <4fce90$8bj@due.unit.no>
  8. NNTP-Posting-Host: jord.alkymi.unit.no
  9.  
  10. I've installed GnuC++ and tried to compile a simple prog..
  11. Here's the situation as viewed from a shell..
  12.  
  13. 0 Serious:C/Test > type test.cpp
  14.  
  15. #include <iostream.h>
  16. #include <stdio.h>
  17.  
  18. int main(int argc, char **argv)
  19.  
  20. {
  21.         printf("Hello World!\n");
  22.         cout << "Hello world\n";
  23.         return 0;
  24. }
  25. 0 Serious:C/Test > gcc -c test.cpp
  26. 0 Serious:C/Test > gcc  test.cpp
  27. /t/cc9981921.o: Undefined symbol _cout referenced from text segment
  28. /t/cc9981921.o: Undefined symbol _  ls_ 7ostreamPCc referenced from text
  29. segment
  30. 0 Serious:C/Test >
  31.  
  32. I.e making a .o file is no problem, but linking it causes errors...
  33. Does anyone know what the problem might be?
  34.  
  35. Best regards,
  36. -- 
  37. atlep@stud.unit.no - http:\\www.stud.unit.no\~atlep\
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.